﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace C_中const和readonly关键字以及readonly修饰的变量怎样修改
{
    internal class Student
    {
        private readonly int ID;

        public int Grade { get; } = 1;

        public Student()
        {
            ID = 1;
            Grade = 2;
        }

        public int GetID()
        {
            return ID;
        }
    }
}
